await
-
Asynchronous programming.
-
awaityields execution until the task completes. -
This is not multithreading by itself.
async Task<int> Load() {
await Task.Delay(1000);
return 5;
}
async/await
await
Asynchronous programming.
await
yields execution until the task completes.
This is not multithreading by itself.
async Task<int> Load() {
await Task.Delay(1000);
return 5;
}